import service from '../utils/request.js'

export function login(data){
    return service({
        method: 'post',
        url: '/login',
        data
    })
}
export function register(data){
    return service({
        method: 'post',
        url: '/user/add',
        data
    })
}
export function modify(data){
    return service({
        method: 'put',
        url:'/user/info',
        data
    })
}

export function Article(data){
    return service({
        method: 'post',
        url: '/home',
        data
    })
}